package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.EsfDealHistoryRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 小区成交历史
 * Created by guilin on 16/1/29.
 */
public class EsfDealHistoryApi extends SaleApi<EsfDealHistoryRo> {

    private int startIndex = 0;
    private String postType = "s";
    private String cestCode;
    private int pageCount = 10;
    private String minroomcnt;
    private String maxroomcnt;


    public EsfDealHistoryApi(Class<?> tag, Class<EsfDealHistoryRo> aClass, IResponseListener<EsfDealHistoryRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setCestCode(String cestCode) {
        this.cestCode = cestCode;
    }

    public void setPostType(String postType) {
        this.postType = postType;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public void setMinroomcnt(String minroomcnt) {
        this.minroomcnt = minroomcnt;
    }

    public void setMaxroomcnt(String maxroomcnt) {
        this.maxroomcnt = maxroomcnt;
    }

    @Override
    protected void setParams() {
        resetParams();
        putParams("startIndex", startIndex);
        putParams("pageCount", pageCount);
        putParams("postType", postType);
        putParams("cestCode", cestCode);
        putStringParams("minroomcnt", minroomcnt);
        putStringParams("maxroomcnt", maxroomcnt);
    }

    @Override
    protected String getPath() {
        return "EsfEstate";
    }
}
